﻿using Ev.CaiPiao.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Ev.CaiPiao.Common
{
    public class Task
    {
        
        public Dictionary<string, modelPing> GetHttpPost(string url)
        {
            var str = HttpClient.HttpPost(url, "");
            try
            {
                var ss = JsonConvert.DeserializeObject<Dictionary<string, modelPing>>(str);
                return ss;
            }
            catch (Exception ex)
            {
                return null;
            }
        }
    }
}
